package ee.karileet.productcatalogue.service;
import ee.karileet.productcatalogue.model.User;

/**
 * @author Markus Karileet
 * @version 1.0
 * @created 29-nov-2013 16:09:21
 */
public interface IUser {

	/**
	 * 
	 * @param user    user
	 */
	public boolean addUser(User user);

	/**
	 * 
	 * @param userId    userId
	 * @throws Exception 
	 */
	public User getUser(int userId) throws Exception;

	public java.util.Set<User> listUsers();

	/**
	 * 
	 * @param user    user
	 * @throws Exception 
	 */
	public void removeUser(int userId) throws Exception;

	/**
	 * 
	 * @param user    user
	 */
	public boolean updateUser(User user);

}